package com.yjr.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjr.common.utils.PageUtils;
import com.yjr.gulimall.product.entity.AttrEntity;
import com.yjr.gulimall.product.vo.AttrRespVO;
import com.yjr.gulimall.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author yjr
 * @email 2608509744@qq.com
 * @date 2021-08-29 13:15:49
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attrVO);

    PageUtils queryBaseAttrPage(Map<String, Object> params, String type,Long cateLogId);

    AttrRespVO getAttrInfo(Long attrId);

    void updateAttr(AttrVO attr);

    List<AttrEntity> getAttrRelationList(Long attrgroupId);

    PageUtils  getAttrGroupRelationList(Long attrgroupId,Map<String, Object> params);

    List<Long> listSearchAttrs(List<Long> attrIds);
}

